﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/HomeAdmin.Master" AutoEventWireup="true" CodeBehind="City.aspx.cs" Inherits="DigitalAnts.Admin.City" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
    <asp:Label ID="lbltitle" runat="server" Text="" ForeColor="Blue" Font-Size="30px"></asp:Label>
    <table class="data">
        <tr>
            <td>Tên quốc gia</td>
            <td align="right">
                <asp:DropDownList ID="ddlcountry" runat="server" Width="150px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td align="right">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" 
                ControlToValidate="txtcityname" runat="server" 
                ValidationExpression="^[\s\S]{1,49}$" Text="Thành phố: 1-49 Ký Tự" 
                SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" /></td>
            <td align="center">
                &nbsp;</td>
        </tr>
        <tr>
            <td>Tên thành phố</td>
            <td align="right">
                <asp:TextBox ID="txtcityname" runat="server" Width="150px"></asp:TextBox></td>
            <td align="center">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                ControlToValidate="txtcityname" ErrorMessage="*" ValidationGroup="txt"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Label ID="lblmess" runat="server" Text="" ForeColor="Red"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="bttsave" runat="server" Text="Thêm" onclick="bttsave_Click" ValidationGroup="txt"/></td>
        </tr>
    </table>
    <asp:GridView ID="gvCountry" runat="server" CellPadding="4" 
        EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            AllowPaging="True" onpageindexchanging="gvCountry_PageIndexChanging">
        <AlternatingRowStyle BackColor="White" Width="100%"/>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="CityID" 
                DataNavigateUrlFormatString="~\Admin\City.aspx?CityID={0}" 
                HeaderText="Edit" Text="Edit" />
        </Columns>
    </asp:GridView>
    </div>
</asp:Content>
